import request from '@/utils/request';

export async function reqTyGroupList(data: any, options?: any): Promise<any> {
	return request('/api/v1/group/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddTyGroup(data: any, options?: any): Promise<any> {
	return request('/api/v1/group/create', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateTyGroup(data: any, options?: any): Promise<any> {
	return request('/api/v1/group/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteTyGroup(data: any, options?: any): Promise<any> {
	return request('/api/v1/group/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


